package com.example.demo.dao;

import com.example.demo.bean.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author Huangyt
 * @version 1.0
 * @date 2020/5/12 20:15
 */
@Repository
public interface UserMapper {
    List<User> findAll();

    @Select("select * from user where id = #{id}")
    User findById(int id);
}
